package com.yiba.vpn.repository;

import com.yiba.vpn.domain.SharingInvitationsRecord;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;



/**
 * User类的CRUD操作
 * @author ScienJus
 * @date 2015/7/10.
 */
public interface SharingInvitationsRepository extends CrudRepository<SharingInvitationsRecord, Long> {


    @Query(value="select count(*) from t_sharing_invitations where account =?1",nativeQuery=true)
    Integer countInvitatingNumByAccount(String email);
}
